package com.test.app

import android.os.Bundle
import android.util.Log
import android.widget.LinearLayout
import androidx.appcompat.app.AppCompatActivity
import com.android.test.dfsa.sdcf.R
import com.blac.SDK

class GameActivity : AppCompatActivity() {

    private lateinit var rootLl :LinearLayout

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_game)

        SDK.initAd()
        rootLl=findViewById(R.id.root_ll)
        rootLl.setOnClickListener{
            SDK.playAd("")
        }

        val KEY = "K4zyTPLU1iQJJfNf2Tl9ZrwHS36A_E7byTF4fX_13rwXZOU1W487UIR10-rxp3xA4iPmZuWCiKrUs8TuBkcOo3"

        val encryKey = SDK.encrypt(KEY)
        val decrpyKey = SDK.decrypt(encryKey)

        Log.e("xxx","$encryKey"+"\n"+"$decrpyKey")
    }
}